import { useState } from 'react'
import { WithCounter } from './WithCounter'

const HoverCounter = (props: any) => {
  return (
    <div>
      <h2 onMouseOver={props.incrementCount}>悬停{props.count}次</h2>
    </div>
  )
}
export default WithCounter(HoverCounter)
